<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        // console.log(Boolean(0))//false
        // console.log(Boolean(1))//true
        // console.log(Boolean(''))//false
        // console.log(Boolean(' '))//true
        // console.log(Boolean('pink'))//true
        // console.log(Boolean(null))//false
        // console.log(Boolean(undefined))//false
        // console.log(Boolean(NaN))//false
        // console.log(Boolean(false))//false
        // console.log(Boolean(true))//true
        // console.log(Boolean({}))//true
        // console.log(Boolean([]))//true
        function some(ele ,arr=[]){
            if(arr.length===0){
                return false
            }else{
                for(let i=0;i<arr.length;i++){
                    if(arr[i]===ele){
                        return true
                    }
                }
                return false
            }

        }
    </script>
</body>
</html>